-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Document Supervisor's add-on availability api #2769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
📝 WalkthroughWalkthroughDocumentation adds a new Store API endpoint, GET Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
docs/api/supervisor/endpoints.md (1)
3236-3243: Clarify response body and semantics; add an example 400 payload.Per the Supervisor PR/tests, success returns 200 with an empty body, while failures return 400 with a JSON object containing a message (common reasons: unsupported architecture, machine, or minimum Core version). The endpoint also always evaluates the latest store version, even if the add-on is already installed. Consider documenting these explicitly and adding a short error example. (github.com)
<ApiEndpoint path="/store/addons/<addon>/availability" method="get"> -Returns 200 success status if the latest version of the add-on is able to be -installed on the current system. Returns a 400 error status if it is not with a -message explaining why. +Checks whether the latest store version of the add-on can be installed on the current system +(even if the add-on is already installed). + +- Success: 200 OK with an empty response body. +- Not installable: 400 Bad Request with a JSON payload containing a human-readable message + explaining why (e.g., unsupported architecture/machine or Home Assistant version too old). + +Example 400 response: +```json +{ + "message": "This add-on requires Home Assistant version 2023.1.1 or greater" +} +``` </ApiEndpoint>
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
docs/api/supervisor/endpoints.md(1 hunks)
frenck
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Approved. Can be merged as soon as the parent PR gets merged.
Proposed change
Document the API added with home-assistant/supervisor#6140
Type of change
Checklist
Additional information
Summary by CodeRabbit